using S.M.SmartMedical.Domain.Enums;
using System.ComponentModel.DataAnnotations;

namespace S.M.SmartMedical.Domain.DTOs
{
    /// <summary>
    /// 轮播图创建DTO
    /// </summary>
    public class CarouselCreateDto
    {
        /// <summary>
        /// 标题
        /// </summary>
        [Required(ErrorMessage = "标题不能为空")]
        [MaxLength(100, ErrorMessage = "标题长度不能超过100个字符")]
        public string Title { get; set; } = string.Empty;

        /// <summary>
        /// 图片URL
        /// </summary>
        [Required(ErrorMessage = "图片URL不能为空")]
        [MaxLength(500, ErrorMessage = "图片URL长度不能超过500个字符")]
        public string ImageUrl { get; set; } = string.Empty;

        /// <summary>
        /// 链接URL
        /// </summary>
        [MaxLength(500, ErrorMessage = "链接URL长度不能超过500个字符")]
        public string? LinkUrl { get; set; }

        /// <summary>
        /// 排序号
        /// </summary>
        [Range(1, int.MaxValue, ErrorMessage = "排序号必须大于0")]
        public int Sort { get; set; } = 1;

        /// <summary>
        /// 状态
        /// </summary>
        public CarouselStatus Status { get; set; } = CarouselStatus.Active;


    }
}